#!/bin/bash
./etapa4.o $1 2> sorted.temp
lastLine=$(tail -n1 sorted.temp)
sed -e '$d' sorted.temp > sorted
#ordena coluna 4 no formato 'human-readable'
sort -k4 -h sorted
rm sorted.temp sorted
echo $lastLine
